<?php 
include_once("../c/config.php");
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
 
$sql="select * from u4  ";
$query=$mysqli->query($sql);
$i=0;
while ($list=$query->fetch_assoc()){
    if ('oE4KPwYu9SI1qE4_Iow3zKZOQWF8' != $list['openid']){
        $sql="INSERT INTO `u3` (`openid`, `name`, `phone`,`email`, `hao`,`nianji`,`szqu`
,`fxqu`,`school`,`school2`, `createtime`)
VALUES ('".$list['openid']."','".$list['name']."','".$list['phone']."'
,'".$list['email']."','".$list['hao']."','".$list['nianji']."','".$list['szqu']."'
,'".$list['fxqu']."','".$list['school']."','".$list['school2']."','".$list['createtime']."') ";
        echo $sql;
        echo ";<br />";
    }
    
    
}   
 
 
	
	
	
	
$mysqli->close();
 

?>